window.onload=function(){
	touyun();
	shebei();
	yesrteday();
	jiance();
	baojing();
	tongji();
};

//$(function(){
//	touyun();
//	shebei();
//	yesrteday();
//	jiance();
//	baojing();
//	tongji();
//});
function shebei(){
	$.ajax({
		url:"http://localhost:8080/YouyanNongdu/onlineServlet",
		success:function(data){
			$("#shebei").html(data);
		},
		      
   		error:function(){
   			/*alert("error");*/
   		}
	});
}
function touyun(){
	$.ajax({
		url:"http://localhost:8080/YouyanNongdu/touyunServlet",
		success:function(data){
			$("#touyun").html(data);
		},
   		error:function(){
   			/*alert("error");*/
   		}
	});
}
function yesrteday(){
	$.ajax({
		url:"http://localhost:8080/YouyanNongdu/yesrOnlineServlet",
		success:function(data){
			$("#yesrterday").html(data);
		},
   		error:function(){
   			/*alert("error");*/
   		}
	});
}
function jiance(){
	$.ajax({
		url:"http://localhost:8080/YouyanNongdu/detectionServlet",
		success:function(data){
			$("#jiance").html(data);
		},
   		error:function(){
   			alert("error12");
   		}
	});
}
function jiance(){
	$.ajax({
		url:"http://localhost:8080/YouyanNongdu/detectionServlet",
		success:function(data){
			$("#jiance").html(data);
		},
   		error:function(){
   			/*alert("errorjiance");*/
   		}
	});
}
function baojing(){
	$.ajax({
		url:"http://localhost:8080/YouyanNongdu/alarmServlet",
		success:function(data){
			$("#baojing").html(data);
		},
   		error:function(){
   			/*alert("errorbaojing");*/
   		}
	});
}
function tongji(){
	$.ajax({
		url:"http://localhost:8080/YouyanNongdu/tongjiServlet",
		success:function(data){
			$("#tongji").html(data);
		},
   		error:function(){
   			/*alert("errorbaojing");*/
   		}
	});
}

